package b01static;

public class Cylinder extends Circle{
    private double length ;

    public Cylinder(double length) {
        this.length = length;
    }

    public Cylinder(double pai, double radius, double length) {
        super(pai, radius);
        this.length = length;
    }

    public double getLength() {
        return length;
    }

    public void setLength(double length) {
        this.length = length;
    }
    public void findVolume(double findArea){
       double volume=findArea*length;
        System.out.println("圆柱的体积为"+volume);
    }
}
